// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 每个浏览器都有一些自带的或者共有的默认样式，会造成一些布局上的困扰，css reset的作用就是重置这些默认样式，使样式表现一致
import 'style/reset.css'
// vue解决移动端1px边框的问题 border.css
import 'style/border.css'
// 引入fastclick解决部分游览器的点击延迟300ms问题
import fastClick from 'fastclick'
// 引入iconfont图标
import 'style/iconfont.css'
// 引入轮播
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 导入elementUi
import ElementUI from 'element-ui';
// 导入elementUicss
import 'element-ui/lib/theme-chalk/index.css';
// require styles轮播样式
import 'swiper/dist/css/swiper.css'
import 'swiper/dist/js/swiper.js'
import axios from 'axios'

// 导入store
import store from './store/index.js'

Vue.prototype.axios = axios

Vue.config.productionTip = false
// 使用fastclick
fastClick.attach(document.body)

Vue.use(VueAwesomeSwiper, /* { default global options } */)
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store, 
  components: { App },
  template: '<App/>'
})
